package com.yanqu.road.entity.activity.commonsupport;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Objects;

@FieldTypeAnnotation(tableName = "t_c_common_union_support", desc = "商会支持")
public class CommonUnionSupportData extends DataObject {

    @FieldTypeAnnotation(select = true, update = true, desc = "活动ID")
    private int activityId;

    @FieldTypeAnnotation(select = true, update = true, desc = "分组ID")
    private int groupId;

    @FieldTypeAnnotation(update = true, desc = "商会uid")
    private String unionUid;

    @FieldTypeAnnotation(desc = "支持人数")
    private int hotCount;

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if(this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        if(this.groupId != groupId) {
            this.groupId = groupId;
            setUpdateOption();
        }
    }

    public String getUnionUid() {
        return unionUid;
    }

    public void setUnionUid(String unionUid) {
        if(!Objects.equals(this.unionUid, unionUid)) {
            this.unionUid = unionUid;
            setUpdateOption();
        }
    }

    public int getHotCount() {
        return hotCount;
    }

    public void setHotCount(int hotCount) {
        if(this.hotCount != hotCount) {
            this.hotCount = hotCount;
            setUpdateOption();
        }
    }
}
